<template>
	<view class="addressadd">
		<block v-if="isload">
			<image :src="poster" style="width:100%"  mode="widthFix"></image>
		</block>
	</view>
</template>

<script>
	var app = getApp();

	export default {
		data() {
			return {
				opt: {},
				loading: false,
				isload: false,

				poster: '',
			};
		},
		onLoad: function(opt) {
			this.opt = app.getopts(opt);
			console.log(this.opt,9999);
			this.getdata();
		},
		methods: {
			getdata: function() {
				var that = this;
				that.loading = true;
				app.get('My/getmemberqr', {}, function(res) {
					console.log(res,99999);
					that.loading = false;
					that.poster = res.poster;
					that.loaded();
				});
			},
		}
	};
</script>
<style>

</style>